// vite.config.js (动态输入配置示例)
import { sync } from "glob";
import { defineConfig } from 'vite'

export default defineConfig({
    // ... 其他配置
    publicDir: '../public',
    root: 'src',
    build: {
        outDir: '../dist',
        rollupOptions: {
            input: sync("./src/**/*.html".replace(/\\/g, "/")), // /\/g, "/"
        },
    },
})